<script type="text/html" id="barDemo">
    {if power('permission_update','更新权限','permission')}
    <a class="layui-btn layui-btn-warm layui-btn-xs" lay-event="edit">编辑</a>
    {/if}
    {if power('permission_delete','删除权限','permission')}
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
    {/if}
</script>


<script type="text/html" id="barDemoPer">
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
</script>

<div id="create_op" class="none">
    <div class="op_body">
        <form class="layui-form layui-form-pane" action="" lay-filter="op_form">
            <input type="hidden" name="id">
            <div class="layui-form-item">
                <label class="layui-form-label">名称</label>
                <div class="layui-input-block">
                    <input type="text" name="display_name" id="display_name" lay-verify="required" autocomplete="off" placeholder="请输入名称" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">规则</label>
                <div class="layui-input-block">
                    <input type="text" name="name" id="name" lay-verify="required" autocomplete="off" placeholder="请输入规则" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">类型</label>
                <div class="layui-input-inline" style="width: 120px">
                    <input type="text" name="type" id="type" lay-verify="required" autocomplete="off" placeholder="请输入类型" class="layui-input">
                </div>
                <div class="layui-input-inline" style="width: 120px;margin-right: 0">
                    <select lay-filter="type_select" id="type_select">
                        <option value="">已有类型</option>
                        {volist name="type" id="vo"}
                        <option value="{$vo}">{$vo}</option>
                        {/volist}
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button type="submit" class="layui-btn" lay-submit="" lay-filter="save_sub">确定提交</button>
                </div>
            </div>
        </form>
    </div>
</div>
<div id="permission_list_op" class="none">
    <div class="op_body">
        <table class="layui-hide" id="table_permission_list" lay-filter="table_permission_list"></table>
    </div>
</div>